package com.struts.web.user.register;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.lg.system.CLGAction;
import com.struts.deal.user.register.Deal;

public class EducationTrainAction extends CLGAction {
    
	/**
	 *  ��ȡҳ����Ϣ
	 */
	public ActionForward execute(ActionMapping actionMapping,
            ActionForm actionForm,
            HttpServletRequest request,
            HttpServletResponse response) throws
Exception {
		EducationTrainForm aWebForm = (EducationTrainForm)actionForm;
		if(aWebForm.getMethod()!=null && aWebForm.getMethod().equals("add")){
			
			boolean result = false;
			Deal.doEducation(request, aWebForm);
			logger.info("kfkdfkdj:"+aWebForm.getMethod());
			return actionMapping.findForward("regFavorite");
		}
		return actionMapping.getInputForward();

}
	
}
